﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="EditarCurso.aspx.cs" Inherits="Atendex.Web.EditarCurso" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Cursos</h3>
    <div id="page-form">
        <p>
            <asp:Label runat="server" ID="lblMensagem" Visible="false"></asp:Label></p>
        <fieldset class="form-data">
            <legend>
                <asp:Label ID="lblLegend" runat="server">Novo Curso</asp:Label>
            </legend>
            <p>
                <asp:Label ID="lblNomeCurso" AssociatedControlID="txtNomeCurso" runat="server" Text="Nome do Curso"></asp:Label>
                <asp:TextBox ID="txtNomeCurso" runat="server"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="lblNomeResponsavel" AssociatedControlID="txtNomeResponsavel" runat="server" Text="Nome do Resposável"></asp:Label>
                <asp:TextBox ID="txtNomeResponsavel" runat="server"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="lblEmailResponsavel" AssociatedControlID="txtEmailResponsavel" runat="server" Text="E-mail do Responsável"></asp:Label>
                <asp:TextBox ID="txtEmailResponsavel" runat="server"></asp:TextBox>
            </p>
        </fieldset>
        <fieldset class="actions">
            <asp:Button runat="server" ID="btnSalvar" Text="Salvar" OnClick="btnSalvar_Click" />
            <asp:Button runat="server" ID="btnLimpar" Text="Limpar" OnClick="btnLimpar_Click" />
            <asp:Button ID="btnExcluir" runat="server" Text="Excluir" Visible="false" 
                onclick="btnExcluir_Click" />
        </fieldset>
        <fieldset class="form-data">
            <legend>Lista de Cursos</legend>
            <asp:GridView ID="gridAreas" runat="server" CssClass="grid-view" AutoGenerateColumns="False"
                OnRowCommand="gridAreas_RowCommand" 
                onrowdatabound="gridAreas_RowDataBound">
                <Columns>
                    <asp:ButtonField ButtonType="Button" Text="Editar" CommandName="Editar" />
                    <asp:BoundField DataField="Nome" HeaderText="Curso" />
                    <asp:BoundField HeaderText="Responsavel" />
                    <asp:BoundField HeaderText="E-mail" />
                </Columns>
            </asp:GridView>
        </fieldset>
    </div>
</asp:Content>
